package private1;

import java.util.Scanner;

public class DayAssign {
    //类类型变量的赋值
    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        String[] wd={"日","一","二","三","四","五","六"};
        int n=stdIn.nextInt();
        Day[] a=new Day[n];//元素a[i]是引用Day的类类型变量，不是日期的实例
            //元素个数为n的Day类型数组
        for (int i = 0; i <a.length ; i++)
          a[i]=new Day(2017,5,5);
//           Day[] a=new Day[]{
//             new Day(1868,8,8),
//             new Day(1922,7,50),
//             new Day(1895,5,50),
//
//
//           };


        for (int i = 0; i <a.length; i++) {
            System.out.println(a[i].getYear()+"年"+a[i].getMonth()+"月"+a[i].getDate()+"日("+
                    wd[a[i].dayOfWeek()]+")"
                    );
        }
    }
}
